﻿<?xml version="1.0" encoding="utf-8"?>
<hibernate-configuration  xmlns="urn:nhibernate-configuration-2.2" >
    <!--<bytecode-provider type="lcg" />
    <reflection-optimizer use="true"/>-->
    <session-factory name="NHibernate.Test">
        <!-- all properties of session-factory -->
        <!--<property name="connection.provider"></property>-->
        <property name="connection.driver_class">NHibernate.Driver.MySqlDataDriver</property>
        <property name="connection.connection_string">
            Database=test;Data Source=localhost;User Id=root;Password=root123
        </property>
        <property name="dialect">NHibernate.Dialect.MySQLDialect</property>
        <property name="command_timeout">10</property>
        <property name="show_sql">true</property>
        <property name="cache.use_second_level_cache">true</property>
        <property name="cache.provider_class">NHibernate.Cache.HashtableCacheProvider,NHibernate</property>
        <property name="cache.use_query_cache">true</property>
      
        <!--<property name="connection.isolation"></property>
        <property name="connection.connection_string_name"></property>
        <property name="connection.release_mode"></property>
        <property name="default_schema"></property>
        <property name="max_fetch_depth"></property>
        <property name="current_session_context_class"></property>
        <property name="transaction.factory_class"></property>
        
        
        <property name="cache.query_cache_factory"></property>
      
        <property name="cache.region_prefix"></property>
        <property name="cache.use_minimal_puts"></property>
        <property name="cache.default_expiration"></property>
        <property name="query.substitutions"></property>
        <property name="query.factory_class"></property>
        <property name="query.imports"></property>
        <property name="hbm2ddl.auto"></property>
        <property name="hbm2ddl.keywords"></property>
        <property name="sql_exception_converter"></property>
        <property name="adonet.wrap_result_sets"></property>
        <property name="prepare_sql"></property>
        <property name="adonet.batch_size"></property>
        <property name="use_proxy_validator"></property>
        <property name="xml.output_stylesheet"></property>
        <property name="generate_statistics"></property>
        <property name="query.startup_check"></property>
        <property name="default_catalog"></property>
        <property name="proxyfactory.factory_class">
            NHibernate.ByteCode.Castle.ProxyFactoryFactory,
            NHibernate.ByteCode.Castle
        </property>
        <property name="adonet.factory_class"></property>
        <property name="default_batch_fetch_size"></property>
        <property name="default_entity_mode"></property>
        <property name="use_sql_comments"></property>
        <property name="format_sql"></property>
        <property name="collectiontype.factory_class"></property>
        <property name="order_inserts"></property>-->

        <mapping assembly="NHibernateDemo.DAL"/>
        <class-cache class="NHibernateDemo.DAL.Entity.PersonBasic,NHibernateDemo.DAL" usage="read-write" />
        <!--<class-cache class="" region="" usage="" />
        <event type="auto-flush">
            <listener class="" type=""/>
        </event>
        <listener class="" type=""/>-->
    </session-factory>
</hibernate-configuration>
